package com.web.exiaodao.remote.vo;

import com.web.exiaodao.business.entity.Moments;
import com.web.webstart.base.util.XaUtil;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * @ClassName: MomentsVo
 * @Description:朋友圈 Vo
 * @author eason.zt
 * @date  2016-11-10 14:29:16
 *
 */
@ApiModel(value="朋友圈Vo对象")
public class MomentsVo {

	@ApiModelProperty(value="主键，自动增长")
	private Long id;
	@ApiModelProperty(value="创建时间")
	private String createTime;
	
	@ApiModelProperty(value="朋友圈内容,内容")
	private String content;
	@ApiModelProperty(value="朋友圈图片,朋友圈图片")
	private String[] photos;

    @ApiModelProperty(value="用户Id,用户Id")
    private Long userId;
    @ApiModelProperty(value="用户名,用户名")
    private String userName;
    @ApiModelProperty(value="用户头像,用户头像")
    private String userPhoto;

    @ApiModelProperty(value="评论列表,评论列表")
    private List<MomentsInteractionVo> interations;
    @ApiModelProperty(value="点赞用户集合,点赞用户集合")
    private String[] likes;
    @ApiModelProperty(value="当前用户是否点赞,0：否、1：是")
    private Integer isLike;

	public MomentsVo() {
		super();
	}

    public MomentsVo(Moments moments) {
        super();
        this.id = moments.getId();
        this.createTime = moments.getCreateTime();
        this.content = moments.getContent();
        this.photos = XaUtil.isNotEmpty(moments.getPhotos()) ? moments.getPhotos().split(",") : null;
        this.userId = moments.getUserId();
    }
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
		public void setUserId(Long userId){
		this.userId=userId;
	}
	
	public Long getUserId(){
		return userId;
	}
		public void setContent(String content){
		this.content=content;
	}

    public String getContent() {
        return content;
    }

    public String[] getPhotos() {
        return photos;
    }

    public void setPhotos(String[] photos) {
        this.photos = photos;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public List<MomentsInteractionVo> getInterations() {
        return interations;
    }

    public void setInterations(List<MomentsInteractionVo> interations) {
        this.interations = interations;
    }

    public String[] getLikes() {
        return likes;
    }

    public void setLikes(String[] likes) {
        this.likes = likes;
    }

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }
}

